Note: This statement is named Right Mouse Down in the Add Statement dialog box.
Presses the right mouse button in a location. This statement is followed by RMouseUp.
Syntax
RMouseDown(xCoordinate, yCoordinate, WaitTime)
Arguments
| Argument | Description |
|---|---|
| xCoordinate | X coordinate to indicate the horizontal pixel location where the mouse button is pressed relative to the window or control. If a window or control is not specified, the coordinate is relative to the screen and must be within the available pixels on the test computer's screen. |
| yCoordinate | Y coordinate to indicate the vertical pixel location where the mouse button is pressed relative to the window or control.If a window or control is not specified, the coordinate is relative to the screen and must be within the available pixels on the test computer's screen. |
| WaitTime | Number of milliseconds to wait after the previous statement before pressing the mouse button. |
Supported objects
Browser, Button, Calendar, Cell, CheckBox, ColumnHeader, ComboBox, ContextMenu, Control, DateTimePicker, EditBox, Grid, HTMLElement, HTMLLink, HTMLTable, Image, Item, Label, Link, ListBox, ListView, Menu, NavigationField, PopupMenu, ProgressBar, RadioButton, Row, RowHeader, ScrollBar, Slider, SpinBox, SubItem, Tab, TabBar, ToolBar, Tree, Window
Example
Browser("Report a Bug").Button("Back").RMouseDown(15, 15, 0)
low-level action